//
//  GZLoginState.h
//  Gunz
//
//  Created by Joggy on 16/3/3.
//  Copyright © 2016年 NUPT. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface GZLoginState : NSObject

@property(nonatomic, readonly, getter=getLoginAccount) NSString *loginAccount;
@property(nonatomic, readonly, getter=getPassword) NSString *password;
@property(nonatomic, readonly, getter=getUserName) NSString *userName;
//@property(nonatomic, readonly, getter=getUserID) NSString *userID;
@property(nonatomic, readonly, getter=getSex) NSString *userSex;
@property(nonatomic, readonly, getter=getIntroduce) NSString *userIntroduce;
@property(nonatomic, readonly, getter=getIsReal) NSString *isReal;
@property(nonatomic, readonly, getter=getReputation) NSString *reputation;
@property(nonatomic, readonly, getter=getGunzCoin) NSString *gunzCoin;
@property(nonatomic, readonly, getter=getBalance) NSString *balance;
@property(nonatomic, readonly, getter=getPhone) NSString *phone;
@property(nonatomic, readonly, getter=getEmail) NSString *email;
@property(nonatomic, readonly, getter=getRememberPasswordState) BOOL rememberPasswordState;
@property(nonatomic, readonly, getter=getAutoLoginState) BOOL autoLoginState;
@property(nonatomic, retain) NSMutableDictionary *userInfo;

+(GZLoginState*)shareInstance;
-(instancetype)init;

+(void)setLoginState:(BOOL)state;
+(BOOL)isLogin;
+(void)setCurrentLoginUserID:(NSString*)id;
+(NSString*)getCurrentLoginUserID;
+(BOOL)createUserDucomentByUserID:(NSString*)userID;

-(void)updateUserInfo;
-(void)setLoginAccount:(NSString*)aAccount;
-(void)setPassword:(NSString*)aPassword;
-(void)setUserName:(NSString*)aName;
//-(void)setUserID:(NSString *)aUserID;
-(void)setUserSex:(NSString*)aSex;
-(void)setIntroduce:(NSString*)aIntro;              //简介
-(void)setIsReal:(NSString*)aReal;          //实名制
-(void)setReputation:(NSString*)aReputation;    //声誉
-(void)setGunzCoin:(NSString*)aCoin;            //智币
-(void)setBalance:(NSString*)aBalance;          //余额
-(void)setPhone:(NSString*)aPhone;
-(void)setEmail:(NSString*)aEmail;
-(void)setRememberPasswordState:(BOOL)state;
-(void)setAutoLoginState:(BOOL)state;

@end
